
import moment from 'moment';

export function formatDateTime(dateTime: string | number) : string {
    if( typeof dateTime === 'number' ) return moment(dateTime).format('YYYY-MM-DD');
    return dateTime ? dateTime as string : "";
}